Added encoding support to the FileAttachment Handler