Escape . and / for class queries