Use explicit to_unsafe_h method when converting parameters to a hash