Pattern.tostring() returns {UNKNOWN} for unknown classes