convert octet string to hex string when no printable character is found
convert octet string to hex string when no printable character is found

this is the same approach that netsnmp uses. However, they use libc's
isspace and isprint, whereas regexes are used in ruby.

swisscom/ruby-netsnmp,swisscom/ruby-netsnmp