Don't encode filenames twice (fixes #454)

A bug about missing encoding was fixed in 2 places (with no tests) not too long ago. So it actually introduced this new bug of filenames being encoded twice. This removes the encoding from `BaseClient` and leaves it in `WireClient`, where I think it belongs.