i2c: allow binary strings as parameters to write() functions in scripting

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>