galimatias is a URL parsing and normalization library written in Java.