[tor-commits] [tor/master] Replace peek_buf_startswith() with a safe version