correct octets in c-string decoding errors