Fix query sharing email lookups to be case-insensitive

Fix #197