In iTerm, how can I change alt+delete to ignore slashes?

In order to get this to work, in iTerm preferences I had to set the key alt+backspace (or w/e you have it as) to map to these hex codes:

0x1B 0x08