Fixed parse file name
Removed encode from test

Django does not produce such a decoding by default, this test was not honest.
Merge pull request #1529 from vlastv/patch-1

Fixed parse file name