[messages] replace brackets by pipe as array delimiter

brackets can be used in settings' name, missed that :(