Remove redundant code in encode_body method
Do not ignore invalid URLs with VCR