changes encoding function

Hi, 
I'm experiencing an issue due to spaces in my images path. Space is encoded as + but I get a 404. If it gets encoded as %20 everything works fine.

What do you think?