Tried solving write char for unsafe type