Changed how to handle text sent to detectlanguage.com