Fixed #32, Java issue where corrupted URLs were throwing runtime NPEs.
Added test, bumped version and published