Make Encoding class thread-safe

Now all const methods may be called without additional locking.
This is assumed by the threaded LaTeX export, which always useses a globally
unique instance for each encoding.
Merge remote-tracking branch 'github/build-bot-master' into bleeding-edge-master
2014.12.08-22.00