fix: no trailing query separator with stray semicolon or equality sign