fix on encoding/decoding of parameters in order to avoid line breaks problems