The best way to learn a language may be an episode of jail in a foreign country.