Encoding bugfix

Signed-off-by: David Anderson <dave@veodesign.co.uk>
Merge branch 'master' of github.com:davjand/rest_api