Enable GHC optimizations
Remove unsafe stuff
Use lazy `ByteString`

Now we're getting closer to a fair comparison with what the Perl code
does.
Use `isSuffixOf`