Properly encode filename parameters

When a file is dropped into a parameter field, encode the filename as
XSL prefers it.