Remove reserved characters from error