Parse URLs first and escape those with # symbols in them