added exception for UnicodeDecodeError