fix documentation on replaceSpecialCharacters