Upgrade to Perl 5.18 as the minimum version

This allows us to get rid of Unicode::Set as Perl 5.18 does Unicode Sets
natively.
Have also fixed some of the transform rule code