Determine page encoding in a reliable way and decode data into unicode