Fixes for file download buffer bug (nul chars) and file erase bug
Merge branch 'fixhugo'