fixing str encoding bug
fixed bug where native client expects a write of magic bytes on the read socket... wtf is that