Fix url encoding, fix new doc form submit