class Git::EscapedPath

def escaped_path_to_bytes(path)

def escaped_path_to_bytes(path)
  index = 0
  [].tap do |bytes|
    while index < path.length
      byte, chars_used = next_byte(path, index)
      bytes << byte
      index += chars_used
    end
  end
end