Fix matching of wildcard path param with trailing /

Closes #471