Fix locale and redirections (fixes #140)