fixed error with utf8 encoding.