Normalize language identifiers as described in #963