reformat error message for implode, Closes PR 13690