Clean up slash stripping, as suggested by @ferrix