Fixed binary string escaping in dumper

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added fallback escaping to html dumper

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added factory to LocalFilePointer

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added mail attachment helpers

Signed-off-by: Tom Wright <tom@inflatablecookie.com>