if capture is undefiend, do not decodeURIComponent
Do not normalize optional captures as empty string.
bump version to 3.1.2