filter out bad characters from db name