Fixed convert bytes to str

Use compact function for convert