Prevent unnecessary UTF-8 conversions
No need to convert anything if the source and target code pages are equal.