Handling non-ascii chars in the binary