fix for Bad Request from command line client 'synapse add'