Fixed a few bugs in wildcard matching.

Wildcards are anchored, unlike regexes. Furthermore, ? in a wildcard
always matches a single character, not at most one character.

Added tests as well.
Merge pull request #238 from ygra/wildcard-anchor

Fixed a few bugs in wildcard matching.