Instead of taking an out-parameter, return the canonicalization result. This allows the API to be used where specs want to store the result and the original values in separate variables.
let
const