Fixed few encoding bugs in action functions.