wrapper.rb: properly calculate length of string in bytes.
Fixed bug in install target.