Add possibility to change filename in LocalFile

Fixes #343
Merge pull request #381 from pAlpha627/issue_343

Add possibility to change filename in LocalFile