Fix the horrendous bug with add_slash: it was changing the variable outside of the filter.