Cleanup: Fix bug in BinaryValue padding logic