Fix locale to be stored in session.