A Non-ambiguous Decomposition of Regular Languages and Factorizing Codes