Add a rescue for encoding error