Moving encode option spec to shared example, because both IO.write and IO.binwrite must support this option.
Merge pull request #213 from josedonizetti/binwrite_encode_option

Moving encode option spec to shared example