support different encoding styles and force to something we can work with.