removing illegal char