Attempt at fixing utf8 validation