Workflow ID: Not filtering with single quotes

I am using this function workflowservice.ListWorkflowExecutionsRequest in golang to filter workflowId by using query in this format:
Query: fmt.Sprintf(“WorkflowId=‘%s’”, escapedWorkflowId),
But I see for workflows with single quotes in the workflowID are not getting filtered. Is this expected behaviour? Can you please suggest if i can escape these?
Also are there any other special characters that can cause such issue.
I see similar behaviour in UI as well, ref thread: Slack
Can you help us? Thanks!