Fix ffi/ffi#242 by coercing objects passed as :string parameters via #to_str