Avoid NPE when using string conversion, simpler code
Merge pull request #312 from sburnicki/ArrayToStringFix

Avoid NPE when using string conversion, simpler code