[#10070] Quote extension before using it in query