Ensure consistent escaping of filenames in attachment URIs

see https://github.com/bestpractical/rt/commit/00b7c82