Writing a URI-formatted record