URL-encode object ids (fixes #62)