If I have a number represented by 3 bytes in hexadecimal form as 0x303132, how can I transform this number into a string of three characters with the same value - '012' - where each character represents the ASCII value of the corresponding byte? I am aware that one way to achieve this is by using '\x', but I am looking for a solution that does not involve hard-coding the value.