add bytestring method for git buffer