Add shebang lines
Fix new_encoded_urls serialization/deserialization; fix case where 0 URLs are processed