JAL-1889 remove non-UTF8 characters so we can build on strict-UTF8 platforms