fix ampersand escape on mac