Update ChatHandler.java

Fixes #6 (I think that the issue is linked?)