Change function to not explicitly declare global
Function for percent escaping keywords
Unit tests. IN VIM?! HERESY!