Use byte-based operations to be used for a C-string

@snoyberg