Fix locale generation on Linux.

The regexp was not unquoting the empty string surrounded by quotes.

Fixes #976.