encoding message correctly for hipchat API post