fix double-encoding.