Fix detection of the webpage charset if it's declared using ' instead of "