Add makeOrigin constructor for safe Origin creating from untrusted
input.