path/filepath: Panic in Match when parsing invalid character range.

Fixes issue 5668.

R=golang-dev, rsc, r
CC=golang-dev
https://codereview.appspot.com/12001056

Committer: Rob Pike <r@golang.org>