try catch for weird characters