Fix segfault when starting with an invalid locale.

Initialize the dictionary in the ctor as otherwise we got segfaults
because of dictionary being NULL.