HTTP File Upload plugin in Spark is not accepting images with names in file names. milo in the forums suggests:
fixed it by myself in ChatRoomDecorator.java using java.net.URLEncoder.encode for now
That is exactly what I would do as well to fix it. Use java.net.URLEncoder.encode to encode the generated URL