Updated handling in language filter

Added improved handling in language filter to support preventing
"non-standard" characters aiding in bypassing the filter.