Fix encoding problems inside pagify. Add required helpers.
Fix attachment_fu
More encoding and helper issues