add file encoding support to BookPageFactory