fixed glitch in utf8 decode