deal with RFC-1766-style language tags
