Sed.java patch

Uses the Matcher class to perform the replacement, preserving the Pattern.CASE_INSENSITIVE modifier, where the use of the String class replacement effectively discarded such modifiers.

The Pattern.DOTALL flag was removed as it is useless in the IRC protocol's single-line contexts.