fix ruby script to correctly process "_" character in dict file