Encode values when mounting iframe