support \0 in strings

TODO: find out why it's buggy in the Python bindings