Redundant here too. May be we should just go with replace in the first call and avoid all this try/except, don't you think? It won't replace anything wrong if the charset is good, and it won't fail either.