bubbles title & messages should be encoded for javascript

Signed-off-by: Sean Coyne <sean@n42designs.com>