Exceptions - get_errno should work only with explicit argument
Exceptions - make sure failed decode() fallbacks to hex_dump_string
CheckLocalHash was affected by $! plus locales.

 Fixing code, fixing tests, improving TestUtils
capture_stdout/stderr to capture in UTF-8 binmode