Auto-cast octet strings

So ("bob" == 0x626f62) will work
Added low-level escaping tests