Filter request hash to remove non-serializable keys from Rails