Add a check for encoded subject lines.

Problem was fixed in 'mail' gem somewhere between 2.4.4 and 2.5.4

Refs #226
Remove stray entries from Gemfile.lock