Add errno-string translation

Targets #587.

Will be extended later on, to be able to translate custom error numbers
to strings, for better debugging of transactions via the API. So this is
something like a "naive" implementation.