MOSYNC-2831: Proper encoding
Merge pull request #43 from mattiasbybro/ThreeTwoOne

MOSYNC-2831: Proper encoding
[MOSYNC-2925] Read until EOF.
Merge pull request #45 from MoSync/ThreeTwoOne

Three two one