modified read policy to wrap in filename in quotes(chrome needs this if there are spaces in the filename or else you will get a duplicate headers error) and took out the encodeURIComponent of the filename variable.