Fully qualify exception name so we actually catch it
Replace hardcoded special characters with escape sequences
This file is now encoding-safe