Falling back to default charset if the charset determined by page is not valid