trying to fix a null byte error when uploading files via email