IMPROVED : Test if text is UTF-8 before converting