Only add unicode filename if the filename contains unicode.

To help some older browsers, such as Safari 5, the url quoted filename
is only added if the filename contains non-ascii characters. In the
ascii case, use the old style filename attachment. Fixed unittests.