Double encode expression to get correct byte lengthThis feels a bit hacky. But it's the best i can do for now. (commit: cd835d7)