fixing bug if content is array of char codes