allow page size to be passed in header and set encoding to utf-8