Support locales in taginfo. Fixes #678