Cherrypick r11351 into 2.5 Release Fix incorrect use of JavaScript's replace() Review by: rdayal@google.com git-svn-id: https://google-web-toolkit.googlecode.com/svn/releases/2.5@11352 8db76d5a-ed1c-0410-87a9-c151d255dfc7