fix haxe.io.Bytes#ofString and toString

Issue #2764
Merge pull request #2765 from mandel59/bytes-utf8-utf16-bug

fix haxe.io.Bytes#ofString and toString