Make language comparisons case-insensitive

This changes language comparisons to be case insensitive, to follow [RFC 3066][1] (2.1)!

[1]: http://www.ietf.org/rfc/rfc3066.txt