Allow spaces in names

This ensures that the name is properly URL encoded before trying
to fetch an image from the server. Without this the app crashes
when a space is used in the name.