Handle errors thrown by trwing to decode non-ASCII chars