fix haxe.io.Bytes#ofString and toString

Issue #2764