Encoding save fix BaseHunk

Add encoding argument to saving of the BaseHunk, not doing
this causes problems with special characters.