Fix truncated user-agent when App name included non-ASCII characters.
Merge pull request #1195 from dtorres/ascii-user-agent

Fix truncated user-agent when App name included non-ASCII characters.