When I lock my MacBook with Command+Control+Q while Safari is open and unlock it, Safari's search function becomes broken. Before I lock my laptop, I can just type something in the url bar and Safari automatically searches it on Google. But after I unlock it, when I write something in the url bar, let's say "Hello World", after I hit Enter, it automatically turns into "Hello%20World" and it just errors out. Why is this happening? The same thing doesn't happen when I lock from the Apple Menu.
macOS Version: 10.13.6 (High Sierra)
Safari version: 11.1.2 (13605.3.8)