Changed some signed characters to unsigned characters to resolve compiler warnings.