Auto detect encod string and return the same string to UTF-8 encode.
<?php mb_convert_encoding($string, "UTF-8", mb_detect_encoding($string)); ?>