[misc] improving JSON assertion fail message
[misc] fixing encoding issue