Small optimization to the unsupported charsets processing