Fix alarm logic and cleanup Unicode output