catch exceptions printing funky characters