Ultraviolet spectroscopy of R Coronae Borealis