UTF-8 support

The current version of the sdk don't allow to upload images when the charset in the JVM is set to UTF-8.