added few params

added few params:
1) dontEscapeFields - donta escape arguments in fields object
2) fileContentType - overwrites content of the file