Adds method to replace ampersand escapes in a string with their encoded values.