Safe language switching

- Fixed, switching languages with query string containing no key or
value in one of it's pairs resulting in different queries after
switching language.