updated the gem to escape spaces