Fixed relative URL validation [Closes #216, #25, #3]