using UTF8 encoding to POST an attachment