add: exceptions to handle encoding issues