Replace invalid UTF-8 characters. Fixes #17.