Load the character replacement table

Per #23.
Switch to a new function to replace invalid characters

Per #23.