Tighten up link bounds checking
Don't allow URLs to end in a '