String.match should defend against matches that would crash the VM