Modify tag values to conform to restrictive charset limitations