core_pattern: fix truncation by core_pattern handler with long parameters