Added strlen() to better handle unicode