properly decode string with null-byte, see #7