fix escaping of current filename, fixes #1316

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>