Add possibility to change filename in LocalFile

Fixes #343