Fix error: incompatible character encodings: ASCII-8BIT and UTF-8
From fcrisafulli/apn_on_rails