Fixed bug when it fails to create an index with special characters (like \n \r \v) in definition.