Removed utf-8 doble-encoding of filename
Use correct identifier when generating temp file to send. Could do with some more improvements here but this should work.