Fix params if bad UTF-8