Attempted fix for the urlquote global name error that was plaguing production so significantly.