Fix attribution encoding mangling