fix special char handling