Fixing the unicode issue in uri for EL6 platforms

Fixes #5869