Added sanitization for language inputs.