[Bug 1048134] decode_utf8() returns gibberish on non-string value