Subject: | storing utf-8 data in a key can cause a crash |
HTTP::Message content must be bytes at /usr/share/perl5/Net/Amazon/S3.pm
line 683
This error can occur if add_key is passed a scalar that has the utf-8
flag turned on, and that utf::downgrade cannot downgrade. Which happens
whenever it's contains a value not in ASCII.. (In my case, I think it
was "ş").
I worked around the problem by running encode_utf8($content) before
passing $content to add_key.
Putting the same utf-8 string in the key name seems to work ok, BTW.