Turns the arguments of a replacer function in String.replace and String.replaceAll into an object with useful names.