Rewrite RNA transcription in Ruby. See #791