q-encoding

Is there a way to decode q-encoded strings in Ruby?

I'm working with mails, and names and subjects sometimes come q-encoded, like this: =?UTF-8?Q?J=2E_Pablo_Fern=C3=A1ndez?= Is there a way to decode them in Ruby? It seems TMail should take care of it, but it's not doing it. ...