ensures byte-string is sent to lib.