consistently url encode/decode page contents