Passed filename should not be modified