Don't try to clean string if it has a valid encoding. Fixes #363