Updated to use .to_vec instead of .to_owned.
Merge pull request #41 from reem/to-vec

Updated to use .to_vec instead of .to_owned.