Refactored #newStashBuildNotificationEntity to use JSONObject to build the notification message.
Escaping names in the notification message to prevent exceptions from Stash when your job is nested (cloudbees folder plugin) or has funky characters that Stash seems unable to handle.