Replace patternProperties regex to support BCP47 language tags.

Fixes #48