Improve speed for extracting strings

75.5% faster on my computer (using ujson, but I think it's mainly due to using hash table in polib.py)