suppressing exceptions and encoding as utf-8 to avoid unicode encoding errors