Some more string -> string(0..255). encode_value_*, read_{file,bytes} and string2hex and hex2string. I have only updated the return values, to avoid making it even more impossible to write strict types code.