Refactor LDAP module to use utility component for email

Closes #72.
Encode filenames sent from upload form

Closes #75.