Fix for unsupported encodings.