Enhancement for charset fallback.

I'm new to git and github.
I hope this is the correct way.