Java port of https://github.com/pid/speakingurl.