make sure double encodes/decodes don't happen