I think that is a feature.. Whenever a chan name are writed at the end of topic(for that " are trimmed), end of the kick resons, part/quit messages( ( and ) are trimmed).. But still don't know why {} are removed..
Whatever.. You can avoid this bug by adding a garbage right char.. Ex. #""Test"") But this might make spam messages not cross-client compatible ;]