Encode boolean values

Fixes #3 

@tiraeth, can you try dev-master and tell me if it works? If that's the case, I'll tag this as 1.5.1. I've updated all the service descriptors ;).