Fixes #1498: Two-part locale specs in lang cookie wouldn't be read corre...

...ctly