Replace String#to_a with split for Ruby 2.x compatibility

Change-Id: I9cb2d3405289d48b68ec803ea3f30437e4f189fa
Closes-bug: #1305655