Use method that measures message length to prevent bugs from NULL
values.