StringBuffer by DOM replaced such that also special characters work