Fixed bug with string passing to downloadFile function.