Fixed a UTF-8 string validation exception.