Fix length encoding