ensure page is a string