implement to_string, encode binaries as utf-8
add the test module