Bug 839912 - Implement the URLUtils interface; r=Ms2ger