Displays special characters correctly, fixes #291, #425