Merge pull request #13 from medoc92/master

Chose appropriate file name and extension for downloading a subdocument
fix #16 cannot download files with special chars
fix #15 download - filenames with spaces truncated