fixed raw output for the java backend; minor refactoring in MaudeFilter