fix encoding issue on write operations
Merge pull request #24 from wajam/fx-fix-encoding

[COMMONS] fix encoding issue on write operations