initial work on #253
fix text encoding
fix
fix test
remove string() function from js
extra test