Properly convert string keys in desired_capabilities