fix runtime error, still has UTF8 encoding issue