Don't try to convert values with invalid encoding.