schema.compiler: Relaxed rules for Py2 strings