Corrects issues with non-positive byte array conversion.