Add encoding in saved pages

Fixes #6