Fixed the method storeAttachment adding url encode to filename parameter...

... and file base name