Wrong padding

The padded length for strings is currently unconditionally calculated as ((len + 4) / 4) * 4, which gives 4 for a length of 0 and 8 for a length of 4 and so on. This is wrong.

Edited by Martin Kröning