Convert header.decoded to string to prevent return of nil

Original pull request: https://github.com/elasticsearch/logstash/pull/1339

Fixes #1
Add spec to test nil header in imap input

Fixes #1