Fix decoding strings (fixes the only unit test)