fix nested-params to cope with newlines in param names