Ensuring that status is properly set when errors occurs while uploading to amazon
Removing invalid characters from file name before sending it to amazon.

The new filename is returned after parsing data.