lib guides syntax and encoding fix