use utf8_decode where string length is needed