some small string function performance tweaks

document optional length argument to bytestring()