Changed print_to_binary to not print the trailing null in a utf8string