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

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