Make exception msg unicode so as to support error messages about problematic URLs containing unicode characters.