Realized that lodash already provides an escape method - no need.