FIX: sprite-url does not return the same result in JRuby

This fixes #179, see that issue for details

cc @headius