Ensure charsets are compared without case sensitivity to avoid duplicates. Originally by http://alexandre.alapetite.fr/