[pallavi-tools] Ignore non-malayalam characters

Ignore non-malayalam and other special characters in input text to
remove unnecessary characters in transliterated file. This will also
help in choosing input text with invalid characters as well and safely
handle them