added a make_safe_dict routine which is basically make_safe_json with encode=False; this creates a serializeable dictionary suitable to be manipulated in python, yet also safe to be passed to json.dumps / jsonify