Fix parseUrl() ignoring language code in url

This is to fix issue #3