adds some exception handling to get around a character encoding issue.