Generalized demo launcher and fixed encoding problem