try catch for utf8